
#ifndef protocol_h
#define protocol_h

class protocol {
    private:
			int cnt;
			int arrayCnt;
			char answer[5];
			char rxCommand;
			char address;
			
			////////////////
			/*char pilotLight[6]="LXX\r\n";
			char pilotLoad[6]="CXX\r\n";
			char pilotSprinkler[6]="SXXTTT\r\n";*/
			int cnt2;
			int arrayCnt2;
			char rxCommand2;
			char address2;
			///////////////
    public:
        protocol();
        void start(long speed);
		void readNetwork(char incoming);
		void readDomesticPC(char incoming);
		String sendInternalTemp();
		String sendExternalTemp();
};       
#endif



